package com.demo;

public class Demo {
    public String perform(String cmd) {
        Factory factory = Factory.getInstance();
        Command command = factory.create(cmd);
        return command.perform();
    }
}
